<include file="Public/head"/>
<link href="__PUBLIC__/layui/css/layui.css" rel="stylesheet" type="text/css" />
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
<style>
table th{
    font-size: 20px;
    color:#000;
}
table td{
    font-size: 18px;
    /*color:#000;*/
}

</style>
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
                    <div class="row">
                    <div class="col-xs-12">
                        
                     <!--    <div style="float:left;margin-top:3px;margin-right:0px;width:10%;font-size:16px;">
                            
                                <input type="button"  value="导入绩效表格" class=" btn-info"  style="width:130px;height:50px;" onclick="dao()"    />
                        
                        </div> -->
                        <div style="margin-top:2%;"></div>
                        <!-- <form id="form" method="post" action="{:U('Shenp/ytong')}" style="margin-top:5%;"> -->
                        <table class="table table-hover" >
                            <thead>
                                <tr>
                                    <!-- <th class="center"><input class="check-all" type="checkbox" value=""></th> -->
                                    <th class="center">考核类型</th>
                                    <th class="center">表格类型</th>
                                    
                                    <th class="center">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                             
                                    <tr>
                                        <!-- <td class="center">
                                            <input class="uids" type="checkbox" name="uids[]" value="{$v['id']}">
                                        </td> -->
                                      
                                            <td class="center">财务指标</td>
                                      
                                            <!-- <td class="center">学习成长</td> -->

                                            <td class="center">绩效考核表</td>
                         
                                        <td class="center">
                                        <?php if(empty($clist)): ?>
                                            <button onclick="jcai(this);" class="layui-btn layui-btn-danger layui-btn-radius">设置集团评分人</button>
                                        <?php else: ?>
                                            <button onclick="jxcai(this);" class="layui-btn layui-btn-normal  layui-btn-radius">修改集团评分人</button>
                                        <?php endif ?>
                                        <button onclick="ycai(this);" class="layui-btn layui-btn-radius">设置医院评分人</button>
                                        </td>
                                       
                                    </tr>  
                             
                            </tbody>

                            <tbody>
                             
                                    <tr>
                                    
                                      
                                            <td class="center">学习成长</td>
                                      
                                            <!-- <td class="center">学习成长</td> -->

                                            <td class="center">绩效考核表</td>
                         
                                        <td class="center">
                                        <?php if(empty($xlist)): ?>
                                            <button onclick="jxue(this);" class="layui-btn layui-btn-danger layui-btn-radius">设置集团评分人</button>
                                        <?php else: ?>
                                            <button onclick="jxxue(this);" class="layui-btn layui-btn-normal layui-btn-radius">修改集团评分人</button>
                                        <?php endif ?>
                                        
                                        <button onclick="yxue(this);" class="layui-btn layui-btn-radius">设置医院评分人</button>
                                        </td>
                                       
                                    </tr>  
                             
                            </tbody>
                        </table>
                        <!-- </form> -->

                 
                    </div>
                    </div>
                    
    
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<!-- <script src="__PUBLIC__/qwadmin/js/function.js"></script> -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
function xuan()
{
    //询问框
    layer.confirm('确定选择么 ( ・◇・)？', {
      btn: ['确定','取消'] //按钮
    }, function(){
         $.ajax({
             type: "POST",
             url:"{:U('gxuan')}",
             data:$('#cform').serialize(),// 要提交的表单 
             beforeSend:function(){
                   layer.load(0, {shade: false});
                },
             success: function(msg) {
                // console.log(msg);
                if (msg == 1111) {
                    layer.msg('设置成功~', {icon: 1});
                    history.go(0); 
                }else{
                    layer.msg('设置失败！', {icon: 2});
                }
             },
             complete: function() {
                     layer.closeAll('loading');
                }
         });
     
    }, function(){
        layer.msg(' (｡・`ω´･) 再见');
    });   
            
}


function jxxuan()
{
    //询问框
    layer.confirm('确定选择么 ( ・◇・)？', {
      btn: ['确定','取消'] //按钮
    }, function(){
         $.ajax({
             type: "POST",
             url:"{:U('gxuan')}",
             data:$('#xform').serialize(),// 要提交的表单 
             beforeSend:function(){
                   layer.load(0, {shade: false});
                },
             success: function(msg) {
                // console.log(msg);
                if (msg == 1111) {
                    layer.msg('设置成功~', {icon: 1});
                    history.go(0); 
                }else{
                    layer.msg('设置失败！', {icon: 2});
                }
             },
             complete: function() {
                     layer.closeAll('loading');
                }
         });
     
    }, function(){
        layer.msg(' (｡・`ω´･) 再见');
    });   
            
}

function cxxuan()
{
    //询问框
    layer.confirm('确定选择么 ( ・◇・)？', {
      btn: ['确定','取消'] //按钮
    }, function(){
         $.ajax({
             type: "POST",
             url:"{:U('gxuan')}",
             data:$('#cxform').serialize(),// 要提交的表单 
             beforeSend:function(){
                   layer.load(0, {shade: false});
                },
             success: function(msg) {
                // console.log(msg);
                if (msg == 1111) {
                    layer.msg('修改成功~', {icon: 1});
                    history.go(0); 
                }else{
                    layer.msg('修改失败！', {icon: 2});
                }
             },
             complete: function() {
                     layer.closeAll('loading');
                }
         });
     
    }, function(){
        layer.msg(' (｡・`ω´･) 再见');
    });   
            
}

function xxxuan()
{
    //询问框
    layer.confirm('确定选择么 ( ・◇・)？', {
      btn: ['确定','取消'] //按钮
    }, function(){
         $.ajax({
             type: "POST",
             url:"{:U('gxuan')}",
             data:$('#xxxform').serialize(),// 要提交的表单 
             beforeSend:function(){
                   layer.load(0, {shade: false});
                },
             success: function(msg) {
                // console.log(msg);
                if (msg == 1111) {
                    layer.msg('修改成功~', {icon: 1});
                    history.go(0); 
                }else{
                    layer.msg('修改失败！', {icon: 2});
                }
             },
             complete: function() {
                     layer.closeAll('loading');
                }
         });
     
    }, function(){
        layer.msg(' (｡・`ω´･) 再见');
    });   
            
}





function jcai(obj)
{
    // console.log(yue);
    layer.open({
        type: 1,
        title:  ['设置财务指标考核评分人', 'font-size:17px;'],
        skin: 'demo-class', //加上边框
        area: ['700px', '400px'], //宽高
        content: $('#jcai'),
        // btn:'按钮'
    });
}

function jxcai(obj)
{
    // console.log(yue);
    layer.open({
        type: 1,
        title:  ['设置财务指标考核评分人', 'font-size:17px;'],
        skin: 'demo-class', //加上边框
        area: ['700px', '400px'], //宽高
        content: $('#jxcai'),
        // btn:'按钮'
    });
}


function jxue(obj)
{
    // console.log(yue);
    layer.open({
        type: 1,
        title:  ['设置学习成长考核评分人', 'font-size:17px;'],
        skin: 'demo-class', //加上边框
        area: ['700px', '400px'], //宽高
        content: $('#jxue'),
        // btn:'按钮'
    });
}

function jxxue(obj)
{
    // console.log(yue);
    layer.open({
        type: 1,
        title:  ['设置学习成长考核评分人', 'font-size:17px;'],
        skin: 'demo-class', //加上边框
        area: ['700px', '400px'], //宽高
        content: $('#jxxue'),
        // btn:'按钮'
    });
}

</script>
</body>
</html>

                    <div id="jcai" style="display:none;">
                            <div class="checkbox" style="margin-left:20px;">
                                <form action="" id="cform">
                                    <input type="hidden" name="type" value="1">
                                     <volist name="cai" id="c">
                                        <label>
                                            <input type="checkbox"  name="user[]" value="{$c.user}"><b>{$c.user}</b>
                                        </label>&nbsp&nbsp&nbsp
                                     </volist>
                                     
                                </form>
                                <div style="margin-top:40%;margin-left:45%;background-color:#66B3FF;width:70px;text-align:center;height:30px;line-height:30px;border:1px solid #66B3FF;box-shadow: 3px 3px 10px #ADADAD;color:#fff;cursor:pointer;font-size:16px;" onclick="xuan()">确定</div>
                            </div>


                    </div>



                    <div id="jxue" style="display:none;">
                            <div class="checkbox" style="margin-left:20px;">
                                <form action="" id="xform">
                                    <input type="hidden" name="type" value="2">
                                     <volist name="xue" id="x">
                                        <label>
                                            <input type="checkbox"  name="user[]" value="{$x.user}"><b>{$x.user}</b>
                                        </label>&nbsp&nbsp&nbsp
                                     </volist>
                                     
                                </form>
                                <div style="margin-top:40%;margin-left:45%;background-color:#66B3FF;width:70px;text-align:center;height:30px;line-height:30px;border:1px solid #66B3FF;box-shadow: 3px 3px 10px #ADADAD;color:#fff;cursor:pointer;font-size:16px;" onclick="jxxuan()">确定</div>
                            </div>


                    </div>









                    <div id="jxcai" style="display:none;">
                            <div class="checkbox" style="margin-left:20px;">
                                <form action="" id="cxform">
                                    <input type="hidden" name="type" value="1">
                                    <input type="hidden" name="xiu" value="1">
                                    <volist name="cai" id="c">

                                        <label for="{$c.user}">
                                            
                                        </label>

                                        <input type="checkbox" <?php if(in_array($c['user'],$carr)) {echo 'checked';} ?> name="user[]" value="{$c.user}" id="{$c.user}"><b>{$c.user}</b>
                                        &nbsp&nbsp&nbsp
                                    </volist>
                                    
                                     
                                </form>
                                <div style="margin-top:40%;margin-left:45%;background-color:#66B3FF;width:70px;text-align:center;height:30px;line-height:30px;border:1px solid #66B3FF;box-shadow: 3px 3px 10px #ADADAD;color:#fff;cursor:pointer;font-size:16px;" onclick="cxxuan()">确定</div>
                            </div>


                    </div>



                    <div id="jxxue" style="display:none;">
                            <div class="checkbox" style="margin-left:20px;">
                                <form action="" id="xxxform">
                                    <input type="hidden" name="type" value="2">
                                    <input type="hidden" name="xiu" value="1">
                                     <volist name="xue" id="t">

                                        <label for="{$t.user}">
                                            
                                        </label>

                                        <input type="checkbox" <?php if(in_array($t['user'],$arr)) {echo 'checked';} ?> name="user[]" value="{$t.user}" id="{$t.user}"><b>{$t.user}</b>
                                        &nbsp&nbsp&nbsp
                                      </volist>

                                     
                                </form>
                                <div style="margin-top:40%;margin-left:45%;background-color:#66B3FF;width:70px;text-align:center;height:30px;line-height:30px;border:1px solid #66B3FF;box-shadow: 3px 3px 10px #ADADAD;color:#fff;cursor:pointer;font-size:16px;" onclick="xxxuan()">确定</div>
                            </div>


                    </div>